<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;

use App\Http\Requests;
use App\Http\Controllers\Controller;

class BladeController extends Controller
{
    //根目录
    public function root()
    {
        return view('root');
    }

    //有路径版本
    public function dir()
    {
        return view('user.dir');
    }

    //向模板中分配数据
    public function assign()
    {
        $users =array(
            array('id'=>1,'name'=>'lao大'),
            array('id'=>2,'name'=>'lao二'),
            array('id'=>3,'name'=>'lao三'),
            array('id'=>4,'name'=>'lao四'),
        );
        return view('user.find',['user'=>'kaka','pwd'=>'mimi','sex'=>'女','html'=>'<b>解析不了B标签</b>','cj'=>50,'users'=>$users]);

    }

    //模板继承操作
    public function drop()
    {
        return view('user.drop');
    }

    public function extendsTpl()
    {
        return view('user.extends');
    }


}
